<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
	</body>
</html>
<script>
	
	let arr = [88,77,11,22,55,44,99,33,66];
	
	for(let i = 0; i<arr.length -1; i++ ){
		
		for(let j =0; j<arr.length -1 - i; j++){
			
			if(arr[j] > arr[j+1]){
				let temp = arr[j+1];
				arr[j+1] = arr[j];
				arr[j] = temp;
				
			}
		}
		
	}
	console.log(arr);
	
</script>